#ifndef __INCLUDED_CBL_CPU_H__
#error "CBL_Cpu.hpp must not be used directly. Use CBL_Cpu.h instead."
#else
#ifndef __INCLUDED_CBL_CPU_HPP__
#define __INCLUDED_CBL_CPU_HPP__

CB_FORCEINLINE uint32 CB_INLINE_ATTR GetTotalNumberOfProcessors()
{
	const SCpuInfo& rCpuInfo = GetCpuInfo();
	return rCpuInfo.Processors * rCpuInfo.Cores * rCpuInfo.LogicalUnits;
}

// -------------------------------------------------------------------------------------------------

CB_FORCEINLINE uint32 CB_INLINE_ATTR GetTotalNumberOfPhysicalProcessors()
{
	const SCpuInfo& rCpuInfo = GetCpuInfo();
	return rCpuInfo.Processors * rCpuInfo.Cores;
}

#endif
#endif